com.supermap.ai
Class AIDetectViewInfo
- java.lang.Object
-
- com.supermap.ai.AIDetectViewInfo
-
public class AIDetectViewInfo extends java.lang.Object
AIDetectView initialization parameter class- Example:
- The following codes illustrate how to associate a model file. Copy and paste detect.tflite and labelmap.txt in the folder AidetectData of the folder SampelData to the folder assets.
aidetectViewInfo=new AidetectViewInfo(); aidetectViewInfo.assetManager=getAssets(); aidetectViewInfo.modeFile = "detect.tflite"; aidetectViewInfo.lableFile = "file:///android_asset/labelmap.txt"; aidetectViewInfo.inputSize = 300; aidetectViewInfo.isQUANTIZED = true;
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
AIDetectViewInfo.FileType
Model file types
-
Field Summary
Fields Modifier and Type Field and Description android.content.res.AssetManager
assetManager
assetManager to save model filesAIDetectViewInfo.FileType
fileType
Types of model filesint
inputSize
Input sizeboolean
isQUANTIZED
Whether to quantifyjava.lang.String
lableFile
Paths of label filesjava.lang.String
modeFile
Paths of model files
-
Constructor Summary
Constructors Constructor and Description AIDetectViewInfo()
-
-
-
Field Detail
-
assetManager
public android.content.res.AssetManager assetManager
assetManager to save model files
-
modeFile
public java.lang.String modeFile
Paths of model files
-
lableFile
public java.lang.String lableFile
Paths of label files
-
inputSize
public int inputSize
Input size
-
isQUANTIZED
public boolean isQUANTIZED
Whether to quantify
-
fileType
public AIDetectViewInfo.FileType fileType
Types of model files
-
-